package cn.ac.iscas.domain;

import cn.ac.iscas.base.enums.TaskStatus;


import java.util.Map;

/**
 * @Author: 
 * @Description: Task 执行结果
 * @Date: 2020/6/12
 */
public class TaskResult {
    //Task唯一标识
    private String id;
    //执行状态
    private TaskStatus status;
    //任务耗时
    private long takeTime;

    public TaskResult(String id, TaskStatus status, long takeTime) {
        this.id = id;
        this.status = status;
        this.takeTime = takeTime;
    }

    public TaskResult() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public TaskStatus getStatus() {
        return status;
    }

    public void setStatus(TaskStatus status) {
        this.status = status;
    }

    public long getTakeTime() {
        return takeTime;
    }

    public void setTakeTime(long takeTime) {
        this.takeTime = takeTime;
    }
}
